from django.conf.urls.defaults import *
from django.contrib import admin
from django.contrib.auth.views import login

from psd.register.views import sign_up_indiv, sign_up_group
from psd.register.views.dashboard import check_in
from psd.register.views.users import show_me

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
#    ('^.*','django.views.generic.simple.direct_to_template', {'template': 'maintenance.html'})
#    ('^$', sign_up_indiv),
#    ('^individual/$', sign_up_indiv),
#    ('^group/$', sign_up_group),
    ('^accounts/login/$', login, {'template_name': 'login.html'}),
    ('^accounts/view/$', show_me),
    ('^admin/checkin/$', check_in),

    (r'^admin/(.*)', admin.site.root),
    ('^.*','django.views.generic.simple.direct_to_template', {'template': 'regclosed.html'})
    # Example:
    # (r'^psd/', include('psd.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:

)
